TextColor

Syntax

Screen:TextColor(color)

Description

Changes the text color for any to-be-printed text.

Note

You can use Konsol:RGB() to mix the right color.

Example

function main() {
  Screen:Show()
 
  Screen:TextColor(16711680)  //make the text color blue
 
  Screen:PrintString("Mabuhay!")  //print the message
 
  Screen:Render()  //display the message to the viewing Screen
 
  Konsol:Delay(1000)  //pause for a second to read the message
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net